package com.sl.au.entity;

import java.util.Date;

import javax.persistence.*;

/**
 * 客户来访
 */
@Entity
@Table(name = "sl_crm_customerVisiting")
public class CustomerVisiting extends Root {

	/** 项目名称与产品 */
	@Column(name = "sProject")
	private String project;
	/** 来访日期 */
	@Column(name = "dVisitingDate")
	@Temporal(TemporalType.TIMESTAMP)
	private Date visitingDate;
	/** 项目进展阶段 */
	@Column(name = "sDevelopment")
	private String development;
	/** 预计合同量 */
	@Column(name = "sContractAmount")
	private String contractAmount;
	/** 机会名称 */
	@Column(name = "sChance")
	private String chance;
	/** 客户 */
	@ManyToOne
	@JoinColumn(name = "customer_id") // 加入一列作为外键
	private Customer customer;
	
	/**	创建者 */
	@ManyToOne
	private User user;

	/** 经办人员 */
	@Column(name = "sOperator")
	private String operator;
	/** 证明人员 */
	@Column(name = "sProve")
	private String prove;

	/** 费用归属 */
	@Column(name = "sCostAtrr")
	private String costAtrr;
	/** 所属片区 */
	@OneToOne
	@JoinColumn(unique = false)
	private SaleArea saleArea;
	/** 备注 */
	@Column(name = "sMemo")
	private String memo;

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public Date getVisitingDate() {
		return visitingDate;
	}

	public void setVisitingDate(Date visitingDate) {
		this.visitingDate = visitingDate;
	}

	public String getDevelopment() {
		return development;
	}

	public void setDevelopment(String development) {
		this.development = development;
	}

	public String getContractAmount() {
		return contractAmount;
	}

	public void setContractAmount(String contractAmount) {
		this.contractAmount = contractAmount;
	}

	public String getChance() {
		return chance;
	}

	public void setChance(String chance) {
		this.chance = chance;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getProve() {
		return prove;
	}

	public void setProve(String prove) {
		this.prove = prove;
	}

	public String getCostAtrr() {
		return costAtrr;
	}

	public void setCostAtrr(String costAtrr) {
		this.costAtrr = costAtrr;
	}

	public SaleArea getSaleArea() {
		return saleArea;
	}

	public void setSaleArea(SaleArea saleArea) {
		this.saleArea = saleArea;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	

}
